package com.ctshk.rpc.system.service;

import com.ctshk.common.dto.Result;
import com.ctshk.common.model.PageResponse;
import com.ctshk.common.model.TokenUser;
import com.ctshk.rpc.system.dto.OperationLogDTO;
import com.ctshk.rpc.system.dto.ScenicDTO;
import com.ctshk.rpc.system.req.*;

import java.time.LocalDateTime;
import java.util.List;
import java.util.Map;


/**
 * <p>
 *
 * </p>
 *
 * @author xuhui
 * @since 1/27/2021
 */
public interface ISceneService {
    /**
     * 新增图片景点资源
     *
     * @param scenicAddReq 入参
     * @param currentUser 登录人信息
     * @return 返回值
     */
    Result add(ScenicAddReq scenicAddReq, TokenUser currentUser);

    Result update(ScenicUpdateReq scenicAddReq, TokenUser currentUser);

    Result modifyStatus(ScenicUpdateStatusReq scenicUpdateStatusReq, TokenUser currentUser);

    Result delete(Long id, TokenUser del);

    Result<ScenicDTO> detail(ScenicDetailReq scenicDetailReq);

    PageResponse<ScenicDTO> list(ScenicListReq scenicListReq, TokenUser currentUser);

    List<OperationLogDTO> opeartionRecords(TokenUser currentUser);

    Map<Long,String> queryScenicName(Map<Long,String> map);

    /**
     * 拉取景点信息
     * @return 返回值
     */
    Result saveScenic(TokenUser user);

    /**
     * 根據id 查询到景点信息
     * @param ids
     * @return
     */
    Result<List<ScenicDTO>> quertByids(String ids);

    ScenicDTO quertByiId(String id);
}
